/*
 * User.java
 *
 * Created on September 24, 2008, 4:00 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.vacuela.publishmx.domains;

import java.util.List;

/**
 *
 * @author nestor.carrasco
 */
public class User extends Person {
    private Integer id;
    private String userId;
    private String password;     
    private String email;
    private String role;
    private List myGroups;
    
    
    
    /** Creates a new instance of User */
    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public List getMyGroups() {
        return myGroups;
    }

    public void setMyGroups(List myGroups) {
        this.myGroups = myGroups;
    }
    
    public String toString(){
        return "Name: " + getFirstName() + " Last Name:  " + getLastName();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
